<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>学生综合信息查询系统-教师列表</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/font-awesome.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/teacher.css}">

    <script type="text/javascript" th:src="@{/js/lib/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/lib/jquery.htools.select.js}"></script>
    <script type="text/javascript" th:src="@{/js/studentList.js}" th:inline="javascript"></script>
</head>
<body>
<div class="container">
    <div class="navbar">
        <div class="navbar-inner" th:inline="text">
            <a class="brand" href="javascript:void(0);"><span class="logo fl"><img th:src="@{/images/logo.png}"></span><span class="logo-title fl">教师综合信息查询系统</span></a>
            <span class="sign-out fr"><a href="/"><i class="fa fa-circle-o-notch"></i>退出系统</a></span>
            <span class="welcome fr"><i class="fa fa-user-circle-o"></i>[[${session.teacherName}]]</span>
        </div>
    </div>
</div>
<div class="container base-padding">
   <div class="teacher-box">
      <div class="current">
          <span><a href="javascript:void(0);"><i class="fa fa-home"></i>主页</a></span>
          <span class="current-seat"><i class="fa fa-angle-right"></i>学生列表</span>
      </div>
       <div class="teacher-container">
           <form th:action="@{/student/listByPage}" th:method="POST" id="search-form" th:object="${uStudentInfo}">
               <input type="hidden" id="pageSizes" th:value="${results.getPages()}">
               <input type="hidden" id="current" th:field="${pageEntity.pageNum}" name="pageEntity.pageNum" th:value="${pageEntity.pageNum}">
              <div class="search-box clearfix">
                  <div class="search-text"><label>学号</label><input type="text"     th:field="*{id}"  placeholder="输入学号"></div>
                  <div class="search-text"><label>姓名</label><input type="text"     th:field="*{name}"  placeholder="输入姓名"></div>
                  <div class="search-text"><label>身份证号</label><input type="text"  th:field="*{idCard}"  placeholder="输入身份证号"></div>
                  <div class="search-text"><label>练习手机</label><input type="text"    th:field="*{mobilePhone}"  placeholder="输入手机号"></div>
              </div>
               <div class="search-box clearfix">
                   <div class="search-text"><label>办公电话</label><input type="text"  th:field="*{workPhone}"  placeholder="输入办公电话"></div>
                   <div class="search-text"><label>政治面貌</label>
                       <select class="selectBox" id="selectBox" th:field="*{politicalStatus}">
                           <option value="">请选择</option>
                           <option value="中共党员" >中共党员</option>
                           <option value="民盟盟员" >民盟盟员</option>
                           <option value="预备党员" >预备党员</option>
                           <option value="群众" >群众</option>
                       </select>
                   </div>
                   <div class="search-text"><label>招生批次</label>
                       <select class="selectBox" id="selectBox2" th:field="*{enrollmentBatch}">
                           <option value="">请选择</option>
                           <option value="本科第一批次">本科第一批次</option>
                           <option value="本科第二批次">本科第二批次</option>
                           <option value="本科第三批次">本科第三批次</option>
                           <option value="专科">专科</option>
                       </select>
                   </div>
                   <div class="search-text" th:inline="text"><label>学院</label>
                       <select class="selectBox" id="selectBox3" th:field="*{subjectAttribution}" >
                           <option value="">请选择</option>
                           <option th:each="college: ${colleges}" th:value="${college.name}">[[${college.name}]]</option>
                       </select>
                   </div>

               </div>
               <div class="search-box" >
                   <div class="search-text" th:inline="text"><label>专业</label>
                       <select class="selectBox" id="selectBox4" th:field="*{prefessionalAttribution}" >
                           <option value="">请选择</option>
                           <option th:each="professional: ${professionls}"  th:value="${professional.name}">[[${professional.name}]]</option>
                       </select>
                   </div>
                   <div class="search-text" ><label>在校状态</label>
                       <select class="selectBox" id="selectBox5" th:field="*{status}">
                           <option th:value="null">请选择</option>
                           <option value="在校">在校</option>
                           <option value="毕业">毕业</option>
                       </select>
                   </div>
                   <input class="submitBtn" type="submit"  value="查询"/>
               </div>
           </form>
          </div>
       <div class="teacher-content baseHeight">
           <div class="knowledge-content">
                 <div class="knowledge-box" th:each="stud,iterStat:${results.records}">
                       <table class="teacher-info" border="0" th:inline="text">
                           <tbody >
                           <tr>
                               <td rowspan="6">
                                   <img th:src="${stud.imgUrl}" />
                               </td>
                               <td width="12.5%">学号：</td>
                               <td width="12.5%">[[${stud.id}]]</td>
                               <td width="12.5%">姓名：</td>
                               <td width="12.5%">[[${stud.name}]]</td>
                               <td width="12.5%">姓名拼音：</td>
                               <td width="12.5%">[[${stud.pinyin}]]</td>
                               <td width="12.5%">性别：</td>
                               <td width="12.5%">[[${stud.sex}]]</td>
                           </tr>
                           <tr>
                               <td width="12.5%">出身日期：</td>
                               <td width="12.5%">[[${stud.birthday} == null ? '': ${#dates.format(stud.birthday,'yyyy-MM-dd')}]]</td>
                               <td width="12.5%">身份证号：</td>
                               <td width="12.5%">[[${stud.idCard} == null ? '' : ${stud.idCard}]]</td>
                               <td width="12.5%">出生地：</td>
                               <td width="12.5%">[[${stud.birthPlace} == null ? '' : ${stud.birthPlace}]]</td>
                               <td width="12.5%">籍贯：</td>
                               <td width="12.5%">[[${stud.nativePlace} == null ? '' : ${stud.nativePlace}]]</td>

                           </tr>
                           <tr>
                               <td width="12.5%">民族：</td>
                               <td width="12.5%">[[${stud.nation}]]</td>
                               <td width="12.5%">政治面貌：</td>
                               <td width="12.5%">[[${stud.politicalStatus}]]</td>
                               <td width="12.5%">招生批次：</td>
                               <td width="12.5%">[[${stud.enrollmentBatch}]]</td>
                               <td width="12.5%">入学时间：</td>
                               <td width="12.5%">[[${stud.admissionTime} == null ? '' : ${#dates.format(stud.admissionTime,'yyyy-MM-dd')}]]</td>
                           </tr>
                           <tr>
                               <td width="12.5%">校区：</td>
                               <td width="12.5%">[[${stud.campus} == null ? '' : ${stud.campus}]]</td>
                               <td width="12.5%">学院：</td>
                               <td width="12.5%">[[${stud.subjectAttribution}]]</td>
                               <td width="12.5%">年级：</td>
                               <td width="12.5%">[[${stud.grade} == null ? '' : ${stud.grade}]]</td>
                               <td width="12.5%">专业：</td>
                               <td width="12.5%">[[${stud.prefessionalAttribution}]]</td>
                           </tr>
                           <tr>
                               <td width="12.5%">班级：</td>
                               <td width="12.5%">[[${stud.classes} == null ? '' : ${stud.classes}]]</td>
                               <td width="12.5%">联系电话：</td>
                               <td width="12.5%">[[${stud.mobilePhone}]]</td>
                               <td width="12.5%">班主任：</td>
                               <td width="12.5%">[[${stud.headTeacher} == null ? '': ${stud.headTeacher}]]</td>
                               <td width="12.5%">在校状态：</td>
                               <td width="12.5%">[[${stud.status}]]</td>
                           </tr>
                           <tr>
                               <td width="12.5%">家庭电话：</td>
                               <td width="12.5%">[[${stud.homePhone} == null ? '' : ${stud.homePhone}]]</td>
                               <td width="12.5%">电子信箱：</td>
                               <td width="12.5%">[[${stud.email} == null ? '' : ${stud.email}]]</td>
                               <td width="12.5%">特长：</td>
                               <td width="12.5%">[[${stud.specialty} == null ? '' : ${stud.specialty}]]</td>
                           </tr>
                           </tbody>
                           <tfoot>
                               <td colspan="9"><div class="particulars">【[[${iterStat.count}]]】[[${stud.name}]],[[${stud.sex}]],[[${stud.subjectAttribution}]]<span class="fr"><a th:href="'/student/findDetail/'+ ${stud.id} " target="_blank" >详细进入</a></span></div></td>
                           </tfoot>
                       </table>
                 </div>
               <th:block th:if = "${results.getPages()} eq 0">
                   <!--没有数据显示-->
                   <div class="no-data">
                       <div class="data-content">
                           <div class="data-images"><img src="/images/no-data.png" /></div>
                           <p class="data-text">暂无数据！</p>
                       </div>
                   </div>
               </th:block>
               <!--分页-->
               <th:block th:if="${results.getPages()} &gt; 0" >
                   <div class="page-box" th:inline="text">
                       <div class="page-list">
                           <span>共[[${results.getTotal()}]]条</span>
                           <span th:if="${results.current} != 1"><a  data-th-attr="pageIndex=${results.current} - 1" >上一页</a></span>
                           <span data-th-each="i : ${#numbers.sequence(((results.current-4) lt 0 ? results.current : (results.current-4)), (results.getPages()-10) lt 0  ? results.getPages() : (((results.current-4) lt 0 ? results.current : (results.current-4))+9))}">
                               <a data-th-classappend="${(results.current) eq i} ? 'active' : ''" data-th-attr="pageIndex=${i}">[[${i}]]</a>
                           </span>
                           <span th:if="${results.current} != (${results.getPages()})"><a data-th-attr="pageIndex=${results.current} + 1">下一页</a></span>
                           <span>跳转到<input id="number" type="number">页</span>
                           <span class="jump">跳转</span>
                       </div>
                   </div>
               </th:block>
           </div>
   </div>
</div>
</div>
</body>
</html>